<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a >列表</a></li>
            <li><a href="{:url('Channel/methods_add')}">{:lang('ADD')}</a></li>
		</ul>
		<form method="post" class="js-ajax-form" >
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th>ID</th>
						<th>名称</th>
						<th>所属通道</th>
						<th>图片</th>
						<th>手续费</th>
						<th>赠送</th>
						<th>赠送比例(%)</th>
						<th>{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="lists" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo['title']}</td>
						<td>
						    <volist name="vo.channel" id="vo1">
						        <div>{$vo1.title}</div>
						    </volist>
						</td>
						<td><img src="{$vo['img_url']}" style="width:60px"></td>
						<td>{$vo['fee']}</td>
						<td>{$vo['calculate']}</td>
						<td>{$vo['percentage']}</td>
						<td>	
                            <a class="btn btn-xs btn-primary" href='{:url("Channel/methods_edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
							<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Channel/methods_del',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>

						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>